import SvgIcon from './SvgIcon/index.vue'
const allGlobalComponent = {SvgIcon}

export default{
    //务必叫做install方法
    install(app:any){
        //注册项目全部的全局组件
        Object.keys(allGlobalComponent).forEach(key=>{
            //@ts-ignore
            app.component(key,allGlobalComponent[key]);
        })
    }
}